.class public Lcom/instagram/ui/a/a;
.super Ljava/lang/Object;
.source "IgDialogBuilder.java"


# instance fields
.field private final a:Landroid/app/Dialog;

.field private b:Landroid/content/Context;


# direct methods
.method public constructor <init>(Landroid/content/Context;)V
    .locals 2
    .parameter

    .prologue
    .line 25
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    .line 26
    iput-object p1, p0, Lcom/instagram/ui/a/a;->b:Landroid/content/Context;

    .line 27
    new-instance v0, Landroid/app/Dialog;

    sget v1, Lcom/facebook/bb;->IgDialog:I

    invoke-direct {v0, p1, v1}, Landroid/app/Dialog;-><init>(Landroid/content/Context;I)V

    iput-object v0, p0, Lcom/instagram/ui/a/a;->a:Landroid/app/Dialog;

    .line 28
    iget-object v0, p0, Lcom/instagram/ui/a/a;->a:Landroid/app/Dialog;

    sget v1, Lcom/facebook/ax;->alert_dialog:I

    invoke-virtual {v0, v1}, Landroid/app/Dialog;->setContentView(I)V

    .line 29
    iget-object v0, p0, Lcom/instagram/ui/a/a;->a:Landroid/app/Dialog;

    const v1, 0x102000a

    invoke-virtual {v0, v1}, Landroid/app/Dialog;->findViewById(I)Landroid/view/View;

    move-result-object v0

    const/16 v1, 0x8

    invoke-virtual {v0, v1}, Landroid/view/View;->setVisibility(I)V

    .line 30
    return-void
.end method

.method public constructor <init>(Landroid/content/Context;II)V
    .locals 1
    .parameter
    .parameter
    .parameter

    .prologue
    .line 32
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    .line 33
    iput-object p1, p0, Lcom/instagram/ui/a/a;->b:Landroid/content/Context;

    .line 34
    new-instance v0, Landroid/app/Dialog;

    invoke-direct {v0, p1, p3}, Landroid/app/Dialog;-><init>(Landroid/content/Context;I)V

    iput-object v0, p0, Lcom/instagram/ui/a/a;->a:Landroid/app/Dialog;

    .line 35
    iget-object v0, p0, Lcom/instagram/ui/a/a;->a:Landroid/app/Dialog;

    invoke-virtual {v0, p2}, Landroid/app/Dialog;->setContentView(I)V

    .line 36
    return-void
.end method

.method static synthetic a(Lcom/instagram/ui/a/a;)Landroid/app/Dialog;
    .locals 1
    .parameter

    .prologue
    .line 20
    iget-object v0, p0, Lcom/instagram/ui/a/a;->a:Landroid/app/Dialog;

    return-object v0
.end method

.method private a(ILandroid/content/DialogInterface$OnClickListener;II)V
    .locals 2
    .parameter
    .parameter
    .parameter
    .parameter

    .prologue
    .line 90
    iget-object v0, p0, Lcom/instagram/ui/a/a;->a:Landroid/app/Dialog;

    invoke-virtual {v0, p3}, Landroid/app/Dialog;->findViewById(I)Landroid/view/View;

    move-result-object v1

    move-object v0, v1

    .line 91
    check-cast v0, Landroid/widget/Button;

    invoke-virtual {v0, p1}, Landroid/widget/Button;->setText(I)V

    .line 92
    invoke-direct {p0, v1, p2, p4}, Lcom/instagram/ui/a/a;->a(Landroid/view/View;Landroid/content/DialogInterface$OnClickListener;I)V

    .line 93
    return-void
.end method

.method private a(Landroid/view/View;Landroid/content/DialogInterface$OnClickListener;I)V
    .locals 3
    .parameter
    .parameter
    .parameter

    .prologue
    const/4 v2, 0x0

    .line 105
    new-instance v0, Lcom/instagram/ui/a/b;

    invoke-direct {v0, p0, p2, p3}, Lcom/instagram/ui/a/b;-><init>(Lcom/instagram/ui/a/a;Landroid/content/DialogInterface$OnClickListener;I)V

    invoke-virtual {p1, v0}, Landroid/view/View;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 114
    invoke-virtual {p1, v2}, Landroid/view/View;->setVisibility(I)V

    .line 116
    iget-object v0, p0, Lcom/instagram/ui/a/a;->a:Landroid/app/Dialog;

    sget v1, Lcom/facebook/aw;->button_group:I

    invoke-virtual {v0, v1}, Landroid/app/Dialog;->findViewById(I)Landroid/view/View;

    move-result-object v0

    .line 117
    if-eqz v0, :cond_0

    .line 119
    invoke-virtual {v0, v2}, Landroid/view/View;->setVisibility(I)V

    .line 121
    :cond_0
    return-void
.end method

.method private a(Ljava/lang/String;Landroid/content/DialogInterface$OnClickListener;II)V
    .locals 2
    .parameter
    .parameter
    .parameter
    .parameter

    .prologue
    .line 98
    iget-object v0, p0, Lcom/instagram/ui/a/a;->a:Landroid/app/Dialog;

    invoke-virtual {v0, p3}, Landroid/app/Dialog;->findViewById(I)Landroid/view/View;

    move-result-object v1

    move-object v0, v1

    .line 99
    check-cast v0, Landroid/widget/Button;

    invoke-virtual {v0, p1}, Landroid/widget/Button;->setText(Ljava/lang/CharSequence;)V

    .line 100
    invoke-direct {p0, v1, p2, p4}, Lcom/instagram/ui/a/a;->a(Landroid/view/View;Landroid/content/DialogInterface$OnClickListener;I)V

    .line 101
    return-void
.end method


# virtual methods
.method public a(I)Lcom/instagram/ui/a/a;
    .locals 1
    .parameter

    .prologue
    .line 53
    iget-object v0, p0, Lcom/instagram/ui/a/a;->b:Landroid/content/Context;

    invoke-virtual {v0, p1}, Landroid/content/Context;->getText(I)Ljava/lang/CharSequence;

    move-result-object v0

    .line 54
    invoke-virtual {p0, v0}, Lcom/instagram/ui/a/a;->a(Ljava/lang/CharSequence;)Lcom/instagram/ui/a/a;

    move-result-object v0

    return-object v0
.end method

.method public a(ILandroid/content/DialogInterface$OnClickListener;)Lcom/instagram/ui/a/a;
    .locals 2
    .parameter
    .parameter

    .prologue
    .line 59
    sget v0, Lcom/facebook/aw;->button1:I

    const/4 v1, -0x1

    invoke-direct {p0, p1, p2, v0, v1}, Lcom/instagram/ui/a/a;->a(ILandroid/content/DialogInterface$OnClickListener;II)V

    .line 60
    return-object p0
.end method

.method public a(Landroid/view/View;)Lcom/instagram/ui/a/a;
    .locals 2
    .parameter

    .prologue
    .line 147
    iget-object v0, p0, Lcom/instagram/ui/a/a;->a:Landroid/app/Dialog;

    sget v1, Lcom/facebook/aw;->customViewHolder:I

    invoke-virtual {v0, v1}, Landroid/app/Dialog;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/view/ViewGroup;

    .line 148
    invoke-virtual {v0, p1}, Landroid/view/ViewGroup;->addView(Landroid/view/View;)V

    .line 149
    const/4 v1, 0x0

    invoke-virtual {v0, v1}, Landroid/view/ViewGroup;->setVisibility(I)V

    .line 150
    return-object p0
.end method

.method public a(Ljava/lang/CharSequence;)Lcom/instagram/ui/a/a;
    .locals 2
    .parameter

    .prologue
    .line 47
    iget-object v0, p0, Lcom/instagram/ui/a/a;->a:Landroid/app/Dialog;

    sget v1, Lcom/facebook/aw;->message:I

    invoke-virtual {v0, v1}, Landroid/app/Dialog;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    invoke-virtual {v0, p1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 48
    iget-object v0, p0, Lcom/instagram/ui/a/a;->a:Landroid/app/Dialog;

    sget v1, Lcom/facebook/aw;->scrollView:I

    invoke-virtual {v0, v1}, Landroid/app/Dialog;->findViewById(I)Landroid/view/View;

    move-result-object v0

    const/4 v1, 0x0

    invoke-virtual {v0, v1}, Landroid/view/View;->setVisibility(I)V

    .line 49
    return-object p0
.end method

.method public a(Ljava/lang/String;)Lcom/instagram/ui/a/a;
    .locals 2
    .parameter

    .prologue
    .line 140
    iget-object v0, p0, Lcom/instagram/ui/a/a;->a:Landroid/app/Dialog;

    sget v1, Lcom/facebook/aw;->alertTitle:I

    invoke-virtual {v0, v1}, Landroid/app/Dialog;->findViewById(I)Landroid/view/View;

    move-result-object v1

    move-object v0, v1

    .line 141
    check-cast v0, Landroid/widget/TextView;

    invoke-virtual {v0, p1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 142
    const/4 v0, 0x0

    invoke-virtual {v1, v0}, Landroid/view/View;->setVisibility(I)V

    .line 143
    return-object p0
.end method

.method public a(Ljava/lang/String;Landroid/content/DialogInterface$OnClickListener;)Lcom/instagram/ui/a/a;
    .locals 2
    .parameter
    .parameter

    .prologue
    .line 65
    sget v0, Lcom/facebook/aw;->button1:I

    const/4 v1, -0x1

    invoke-direct {p0, p1, p2, v0, v1}, Lcom/instagram/ui/a/a;->a(Ljava/lang/String;Landroid/content/DialogInterface$OnClickListener;II)V

    .line 66
    return-object p0
.end method

.method public a(Z)Lcom/instagram/ui/a/a;
    .locals 1
    .parameter

    .prologue
    .line 128
    iget-object v0, p0, Lcom/instagram/ui/a/a;->a:Landroid/app/Dialog;

    invoke-virtual {v0, p1}, Landroid/app/Dialog;->setCancelable(Z)V

    .line 129
    return-object p0
.end method

.method public a([Ljava/lang/CharSequence;Landroid/content/DialogInterface$OnClickListener;)Lcom/instagram/ui/a/a;
    .locals 6
    .parameter
    .parameter

    .prologue
    const v5, 0x102000a

    .line 161
    new-instance v1, Lcom/instagram/ui/d/h;

    iget-object v0, p0, Lcom/instagram/ui/a/a;->b:Landroid/content/Context;

    invoke-direct {v1, v0}, Lcom/instagram/ui/d/h;-><init>(Landroid/content/Context;)V

    .line 162
    const/4 v0, 0x1

    invoke-virtual {v1, v0}, Lcom/instagram/ui/d/h;->a(Z)V

    .line 164
    iget-object v0, p0, Lcom/instagram/ui/a/a;->a:Landroid/app/Dialog;

    invoke-virtual {v0, v5}, Landroid/app/Dialog;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/ListView;

    .line 165
    new-instance v2, Landroid/graphics/drawable/ColorDrawable;

    iget-object v3, p0, Lcom/instagram/ui/a/a;->b:Landroid/content/Context;

    invoke-virtual {v3}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;

    move-result-object v3

    sget v4, Lcom/facebook/at;->transparent:I

    invoke-virtual {v3, v4}, Landroid/content/res/Resources;->getColor(I)I

    move-result v3

    invoke-direct {v2, v3}, Landroid/graphics/drawable/ColorDrawable;-><init>(I)V

    invoke-virtual {v0, v2}, Landroid/widget/ListView;->setBackgroundDrawable(Landroid/graphics/drawable/Drawable;)V

    .line 168
    new-instance v2, Lcom/instagram/ui/a/c;

    invoke-direct {v2, p0, p2}, Lcom/instagram/ui/a/c;-><init>(Lcom/instagram/ui/a/a;Landroid/content/DialogInterface$OnClickListener;)V

    invoke-virtual {v0, v2}, Landroid/widget/ListView;->setOnItemClickListener(Landroid/widget/AdapterView$OnItemClickListener;)V

    .line 178
    invoke-virtual {v1, p1}, Lcom/instagram/ui/d/h;->a([Ljava/lang/CharSequence;)V

    .line 179
    invoke-virtual {v0, v1}, Landroid/widget/ListView;->setAdapter(Landroid/widget/ListAdapter;)V

    .line 180
    iget-object v0, p0, Lcom/instagram/ui/a/a;->a:Landroid/app/Dialog;

    invoke-virtual {v0, v5}, Landroid/app/Dialog;->findViewById(I)Landroid/view/View;

    move-result-object v0

    const/4 v1, 0x0

    invoke-virtual {v0, v1}, Landroid/view/View;->setVisibility(I)V

    .line 181
    return-object p0
.end method

.method public a()V
    .locals 1

    .prologue
    .line 43
    iget-object v0, p0, Lcom/instagram/ui/a/a;->a:Landroid/app/Dialog;

    invoke-virtual {v0}, Landroid/app/Dialog;->dismiss()V

    .line 44
    return-void
.end method

.method public b()Landroid/app/Dialog;
    .locals 1

    .prologue
    .line 124
    iget-object v0, p0, Lcom/instagram/ui/a/a;->a:Landroid/app/Dialog;

    return-object v0
.end method

.method public b(I)Lcom/instagram/ui/a/a;
    .locals 2
    .parameter

    .prologue
    .line 133
    iget-object v0, p0, Lcom/instagram/ui/a/a;->a:Landroid/app/Dialog;

    sget v1, Lcom/facebook/aw;->alertTitle:I

    invoke-virtual {v0, v1}, Landroid/app/Dialog;->findViewById(I)Landroid/view/View;

    move-result-object v1

    move-object v0, v1

    .line 134
    check-cast v0, Landroid/widget/TextView;

    invoke-virtual {v0, p1}, Landroid/widget/TextView;->setText(I)V

    .line 135
    const/4 v0, 0x0

    invoke-virtual {v1, v0}, Landroid/view/View;->setVisibility(I)V

    .line 136
    return-object p0
.end method

.method public b(ILandroid/content/DialogInterface$OnClickListener;)Lcom/instagram/ui/a/a;
    .locals 2
    .parameter
    .parameter

    .prologue
    .line 71
    sget v0, Lcom/facebook/aw;->button2:I

    const/4 v1, -0x2

    invoke-direct {p0, p1, p2, v0, v1}, Lcom/instagram/ui/a/a;->a(ILandroid/content/DialogInterface$OnClickListener;II)V

    .line 72
    return-object p0
.end method

.method public b(Ljava/lang/String;Landroid/content/DialogInterface$OnClickListener;)Lcom/instagram/ui/a/a;
    .locals 2
    .parameter
    .parameter

    .prologue
    .line 83
    sget v0, Lcom/facebook/aw;->button3:I

    const/4 v1, -0x3

    invoke-direct {p0, p1, p2, v0, v1}, Lcom/instagram/ui/a/a;->a(Ljava/lang/String;Landroid/content/DialogInterface$OnClickListener;II)V

    .line 84
    return-object p0
.end method

.method public b(Z)Lcom/instagram/ui/a/a;
    .locals 1
    .parameter

    .prologue
    .line 185
    iget-object v0, p0, Lcom/instagram/ui/a/a;->a:Landroid/app/Dialog;

    invoke-virtual {v0, p1}, Landroid/app/Dialog;->setCanceledOnTouchOutside(Z)V

    .line 186
    return-object p0
.end method

.method public c(ILandroid/content/DialogInterface$OnClickListener;)Lcom/instagram/ui/a/a;
    .locals 2
    .parameter
    .parameter

    .prologue
    .line 77
    sget v0, Lcom/facebook/aw;->button3:I

    const/4 v1, -0x3

    invoke-direct {p0, p1, p2, v0, v1}, Lcom/instagram/ui/a/a;->a(ILandroid/content/DialogInterface$OnClickListener;II)V

    .line 78
    return-object p0
.end method
